﻿using System;
using System.Collections.Generic;
using System.Text;

namespace UpDryTwistImageReader {
    class Directories : Dictionary<string, ImageList> {

        #region Methods:  AddFolder

        public void addFolder(Configuration config, string folder, List<string> extensions) {

            if (!this.ContainsKey(folder)) {
                ImageList list = new ImageList(config, folder, extensions, false);
                this.Add(folder, list);
                list.scan();
            }
        }

        public override string ToString() {

            string output = "";
            foreach (string folder in this.Keys) {
                output = output + ";" + folder;
            }
            return output;
        }

        #endregion

    }
}
